//
//  AppDelegate.m
//  RacMVVM
//
//  Created by 崔博 on 2018/11/22.
//  Copyright © 2018年 崔博. All rights reserved.
//

#import "AppDelegate.h"

@interface AppDelegate ()
@property (nonatomic, strong) DB_BaseViewProtocolImpl *services;
@property (nonatomic, strong) DB_BaseViewModel *viewModel;

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    
    self.window = [[UIWindow alloc] initWithFrame: [UIScreen mainScreen].bounds];
    [self.window makeKeyAndVisible];
    
    
    self.services = [[DB_BaseViewProtocolImpl alloc] init];
    self.navigationControllerStack = [[DB_NavigationControllerStack alloc] initWithService:self.services];
    
    TestViewModel * test = [[TestViewModel alloc] initWithService:self.services parms:nil];
    [self.services resetRootViewModel:test];
    
    return YES;
}



@end
